package filters;

public enum HttpServletResponseHeaderEnums {
    Access_Control_Allow_Credentials("Access-Control-Allow-Credentials", "true"),
    Access_Control_Allow_Origin("Access-Control-Allow-Origin", "*"),
    Access_Control_Allow_Headers("Access-Control-Allow-Headers", "*"),
    Access_Control_Allow_Methods("Access-Control-Allow-Methods", "*"),
    Access_Control_Max_Age("Access-Control-Max-Age", "86400"); // 24小时 86400 秒

    private String name;
    private String value;

    HttpServletResponseHeaderEnums(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }
}
